//
//  MPPlatformObject.m
//  M800Project
//
//  Created by 姚宗超 on 14/11/7.
//  Copyright (c) 2014年 姚宗超. All rights reserved.
//

#import "MPPlatformObject.h"
#import "NSDictionary+Common.h"

@implementation MPPlatformObject

/*
 isSubscribed = 1;
 platformCode = 11;
 platformName = "\U7ea2\U5cad\U521b\U6295";
 */

+ (id)platformWithInfoDic:(NSDictionary *)infoDic
{
    MPPlatformObject* platform = [MPPlatformObject new];
    // 解析网络数据
    platform.platformName = [infoDic stringValueForKey:@"platformName"];
    platform.platformId = [infoDic objectForKey:@"platformCode"];
    platform.subStatus = [[infoDic objectForKey:@"isSubscribed"] integerValue];
    return platform;
}

@end
